# 0
# ???

# 1
# my_list = [1,2,3,,]
# 语法异常

# 2
# list2 = [1, 2, 3, 4, 5]
# print(list2[len(list2)])
# 数组越界

# 3
#
list3 = [3,5,2,4,5]
# list3.sorted()
print(sorted(list3))

#4
dict1 = {'host':'http://www.baidu.com','port':'8080'}

# print(dict1['server'])

#5
def myFun(x,y):
    print(x,y)
# myFun(x=4,3)

#6
# f = open('tttt.txt','wb')
# f.write(333)
# f.close()


#7
def fun1():
    x = 5
    def fun2():
        x = 5+1
        return x
    return fun2()
print(fun1())
# UnboundLocalError